<script>
	// 引入vue3 getCurrentInstance 
	import {
		getCurrentInstance
	} from 'vue'
	import pinia from '@/store/index'

	import { useAppStore } from './store/app'
	
	import { useThemeStore } from './store/theme'

	const getTheme = useThemeStore(pinia)
	
	const appStore = useAppStore()
	
	export default {

		onLaunch: function() {

			appStore.getConfig()
			
			getTheme.getTheme()

			uni.getSystemInfo({

				success: function(e) {

					uni.setStorageSync('osName', e.osName)
					
					uni.setStorageSync('screenHeight', e.windowWidth)
					
					uni.setStorageSync('TopHeight', e.statusBarHeight)

					
				}
			})

			
		},
		onShow: function() {
			
		},
		methods: {

		
		},
		onHide: function() {
		

		}
	}
</script>


<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-plus/index.scss";
	@import 'static/css/unocss.css';
	.coperright{
		text-align: center;
		font-size: 12px;
		color: #999;
	}
	.footer_zhanwei{
		height: 60px;
	}
</style>